package base.string.algorithm;

import org.apache.commons.lang.StringUtils;

import base.patterns.operation.Function;


public class TrimString implements Function<String, String> {

	@Override
	public String call(String s) {
		if (!StringUtils.isEmpty(s)){
			return s.trim();
		}
		return null;
	}

}
